package cho114366.basic;

import java.util.Scanner;

public class J05_52_ {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		System.out.println("Enter the number of lines :");
		
		int num = sc.nextInt();
		
		sc.close();
		
		int i = 1;
		int j = 1;
		while (j <= 7) {
			i=1;
			while (i<= 7) {
				if (i > j)
					System.out.print(" ");
				else if(i)
					System.out.print(i);
					System.out.print(i+1);

				--i;
			}
					++j;
			System.out.println(" ");

		}
	}
}